home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / BOTTLE.ZIP / bottle.txt
Text File  |  1996-12-29  |  2KB  |  57 lines

  1. ***************
  2. * Bottle Spin *
  3. * =========== *
  4. ***************
  5.  
  6. You've seen it from the eggdrop bots, I dunno if anyones done a
  7. mIRC script bottle-spin, I'm sure they have, so here's another one;-)
  8.  
  9. So what'zit do? well, the operating instructions are complicated....
  10. someone types >spin
  11.  
  12. By popleur demand here's the script i use, which includes a
  13. voting thing as well, this version has a faster way to decide the
  14. nick results as well, plus detects if they change their nick >;-)
  15.  
  16. Please change the > prefix to your own.
  17.  
  18. 1:on text:>spin:?:msg $nick Please type >spin on the channel to spin the bottle
  19. 1:on text:>spin:#: {
  20.   if (%spinnumber = 1) { msg $nick Sorry, spin in progress... | halt }
  21.   else set %spinnumber 1
  22.   set %bottlechan $chan
  23.   set %vote enabled
  24.   set %voteyes 0
  25.   set %voteno 0
  26.   :bottlestart
  27.   set %bottlenick $nick($rand(1,$nick(0,%bottlechan)),%bottlechan) 
  28.   msg %bottlechan $nick spins the bottle...
  29.   timer 1 1 msg %bottlechan The bottle spins around n around...
  30.   timer 1 2 msg %bottlechan The bottle slows down...
  31.   timer 1 6 msg %bottlechan The Bottle lands on %bottlenick $+ !
  32.   timer 1 7 msg %bottlechan So, whaddaya wanna do with %bottlenick $+ ? Type >kick to vote for kicking, type >save otherwise. Voting closes in 60 seconds 
  33.   timer 1 60 set %vote disabled
  34.   timer 1 60 vote 
  35.   timer 1 60 set %spinnumber 0
  36. }
  37. 1:on text:>kick:#: {
  38.   if %vote = disabled { notice $nick Sorry voting is closed! | halt }
  39.   if %vote = enabled { inc %voteyes 1 | notice $nick Your vote for kicking %bottlenickhas been recorded }
  40. }
  41. 1:on text:>save:#: {
  42.   if %vote = disabled { notice $nick Sorry voting is closed! | halt }
  43.   if %vote = enabled { inc %voteno 1 | notice $nick Your vote for saving %bottlenick has been recorded }
  44. }
  45.  
  46.  
  47. Obviously u can do whattevver you want, but if you include this script in a bot,
  48. I'd appreciate a mention of my nick, and The <ò> Aut0Bot <ò>, cheerz.
  49.  
  50. Hi'z to oH_yEaH, Wichita-Guy, ^monty, MEK and sumWOMAN
  51.  
  52. *************************************************
  53. * Bottle Spin script, part of the Aut0Bot ⌐1996 *
  54. *    written by Phillip Renfield aka _Qu^rtZ_   *
  55. *************************************************
  56.  
  57.